package com.big.cart;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.retry.annotation.EnableRetry;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@ComponentScan(basePackages = {"com.big"})
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(value = "com.big")
@EnableSwagger2
//@EnableRetry //重试机制
public class CartApplication {
    public static void main(String[] args) {
     SpringApplication.run(CartApplication.class,args);
        System.out.println("*********购物车初始化完成**********");
    }
}



















